/*
 * Copyright (c) JoinQuant Development Team
 * Author: Huayong Kuang <kuanghuayong@joinquant.com>
 */

#include <iostream>

using namespace std;

int main(void)
{
    char c = 'a';
    char *p_c = &c;
    int i = 1;
    int *p_i = &i;
    cout << "Size of char          : " << sizeof(char) << endl;
    cout << "Size of int           : " << sizeof(int) << endl;
    cout << "Size of short int     : " << sizeof(short int) << endl;
    cout << "Size of long int      : " << sizeof(long int) << endl;
    cout << "Size of float         : " << sizeof(float) << endl;
    cout << "Size of double        : " << sizeof(double) << endl;
    cout << "Size of wchar_t       : " << sizeof(wchar_t) << endl;
    cout << "Size of char variable : " << sizeof(c) << endl;
    cout << "Size of int variable  : " << sizeof(i) << endl;
    cout << "Size of char pointer  : " << sizeof(p_c) << endl;
    cout << "Size of int pointer   : " << sizeof(p_i) << endl;
    cout << "Size of int32_t       : " << sizeof(int32_t) << endl;
    cout << "Size of int64_t       : " << sizeof(int64_t) << endl;

    return 0;
}

